package com.fjs.service.impl;

import com.fjs.mapper.AccountMapper;
import com.fjs.pojo.Account;
import com.fjs.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: AccountServiceImpl
 * @Description:
 * @PACKAGE_NAME：com.fjs.internetsystem.service.impl
 * @Author: 94358 fangjinsen
 * CreateDate: 2022/5/19 21:27
 */
@Service("accountService")
public class AccountServiceImpl implements AccountService {

    private final AccountMapper accountMapper;

    public AccountServiceImpl(AccountMapper accountMapper) {
        this.accountMapper = accountMapper;
    }

    @Override
    public List<Account> queryAccount(Account account) {
        return accountMapper.queryAccount(account);
    }

    @Override
    public List<Account> accountLogin(Account account) {
        return accountMapper.accountLogin(account);
    }


    @Override
    public int changeLoginFeedBack(Account account) {
        return accountMapper.changeLoginFeedBack(account);
    }

    @Override
    public int updetaAccount(Account account) {
        return accountMapper.updetaAccount(account);
    }

    @Override
    public int deleteAccount(Account account) {
        return accountMapper.deleteAccount(account);
    }

    @Override
    public int insertAccount(Account account) {
        return accountMapper.insertAccount(account);
    }
}
